﻿using System.Web;
using NHibernate;

namespace Genesis.Infrastructure.Persistence.Providers
{
    
    public class SessionProvider
    {

        public static ISession Current
        {

            get { return HttpContext.Current.Items["CurrentSession"] as ISession;  }

            set { HttpContext.Current.Items["CurrentSession"] = value;  }

        }

    }

}